package com.xbongbong.pro.domain.dao;

import com.xbongbong.pro.domain.entity.BiProWarehouseEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author 梁鲁江
 * @version v1.0
 * @date 2019/3/20 10:24
 * @since v1.0
 */
@Repository
@Mapper
public interface BiProWarehouseDao {

    Integer insert(BiProWarehouseEntity biDataWarehouse);

    Integer update(BiProWarehouseEntity biDataWarehouse);

    void insertBatch(List<BiProWarehouseEntity> biDataWarehouseList);

    Integer deleteByKey(@Param("key") Long key, @Param("corpid") String corpid);

    BiProWarehouseEntity getByKey (@Param("key") Long key, @Param("corpid") String corpid);

    List<BiProWarehouseEntity>  findEntitys(@Param("param")Map<String ,Object>  param);

    Integer getEntitysCount(@Param("param")Map<String ,Object> param);

    Integer updateIsDoneByKey(@Param("key") Long key, @Param("corpid") String corpid);

}
